package Day011_多线程1.ZuoYe;

/**
 * @author zhangyan
 * @date 2020/4/28 16:44
 */
public class Test1 {
    public static void main(String[] args) {

        //创建对象
        MyThread mt = new MyThread();
        mt.start();

        for (int j = 0; j < 1000; j++) {
            System.out.println("j循环" + j);
        }
    }
}

class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println("i循环" + i);
        }
    }
}